package fr.gestionimmoejb.model;

import java.io.Serializable;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Logement implements Serializable {
	@Id
	private Integer id;

	private String nom;

	private String type;

	private String description;

	private Integer site;

	@OneToMany(mappedBy="idLogement")
	private Set<Reservation> reservationCollection;

	private static final long serialVersionUID = 1L;

	public Logement() {
		super();
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNom() {
		return this.nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getSite() {
		return this.site;
	}

	public void setSite(Integer site) {
		this.site = site;
	}

	public Set<Reservation> getReservationCollection() {
		return this.reservationCollection;
	}

	public void setReservationCollection(Set<Reservation> reservationCollection) {
		this.reservationCollection = reservationCollection;
	}

}
